$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
  // Modify options, control originalOptions, store jqXHR, etc
  options.headers = { Authorization: localStorage.getItem("login") }; //// 从本地存储中获取到用户登录后的token携带给服务器

  // 2.将url补全前缀
  options.url =
    options.url.indexOf("http") != -1
      ? options.url
      : "http://localhost:8081/api/v1" + options.url;
});
